// pages/myCenter/component/shopMsg.js
Component({
  /**
   * 组件的属性列表
   */
  properties: {
    shop: Object
  },

  /**
   * 组件的初始数据
   */
  data: {

  },

  /**
   * 组件的方法列表
   */
  methods: {
    //跳转店铺详情
    toShop(e) {
      let shopId = e.currentTarget.dataset.shopid
      console.log(shopId)
      wx.reLaunch({
        url: '/pages/Index/Index?shopId=' + shopId,
      })
    },
    phone(e) {
      let phone = e.currentTarget.dataset.phone
      wx.makePhoneCall({
        phoneNumber: phone,
      })
    },
  }
})